package com.shunli.cterminal.model.req;

import com.examples.core.validation.constraints.EnumValue;
import com.shunli.cterminal.model.code.CterminalResultCode;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @ClassName: LinkQueryReq
 * @Description: TODO
 * @Author: DAIYALU
 * @Date: 2024/6/28
 * @Version: 1.0
 */
@Data
@Schema(name = "LinkQueryReqBody", description = "发货链接查询")
public class LinkQueryReq implements Serializable {

    private static final long serialVersionUID = -5138262785620398759L;

    @NotNull(message = CterminalResultCode.PARAMS_EMPTY)
    @Schema(description = "商品ID")
    private Long goodsId;

    @NotBlank(message = CterminalResultCode.PARAMS_EMPTY)
    private String platformId;

//    @NotBlank(message = MiddleResultCode.PARAMS_EMPTY)
    @Schema(description = "方式ID")
    private String promotion;

    @Schema(description = "业务类型 01-测算 02-起名")
    @EnumValue(strValues = {"01","02"}, message = CterminalResultCode.PARAMS_EMPTY)
    private String productType;

    private String projectCode;

    private String channelType;
}
